package com.taxi.passengeruser.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Ruomeng
 * @Date: 2023/12/23
 * @Description : online-taxi
 * @Version: 1.0
 */
@RestController
@RefreshScope
public class TestController {

    @GetMapping("/test")
    public String test(){
        return "service-passenger-user";
    }

    @Value("${test-application}")
    String test;

    @GetMapping("/get-config")
    public String getConfig(){
        return test;
    }

}
